The HomeNew
component is located at:
frontend_react\src\components\HomeNew.js
This is the main page of the web application, which displays different projects and auctions. This component is built with React.
- Data Fetching: Uses the
axios
library to fetch different data such as projects, users, and auctions from the backend. - Displaying Auctions and Projects: Provides functionality to display a list of projects and auctions. Includes a carousel view to rotate through the list.
- Navigating to Details: Contains functions to handle navigation to the detail pages of individual projects and auctions.
- Statistics Display: Displays the total number of users, projects applied, and total SUCoins raised.
- Loading State Handling: Displays a loading icon while data is being fetched, transitioning to the actual content once data is ready.